package com.tungse.study.mini_spring.web.controller;

import com.tungse.study.mini_spring.annotation.MyComponent;
import com.tungse.study.mini_spring.web.annotation.MyController;
import com.tungse.study.mini_spring.web.annotation.MyRequestMapping;
import com.tungse.study.mini_spring.web.annotation.MyRequestParam;

/**
 * @Author : Tungse
 * @Date: 2025/4/12 21:55
 * @Description:
 */
@MyComponent
@MyController
@MyRequestMapping("/hello")
public class HelloController {

    @MyRequestMapping("/a")
    public String sayHello(@MyRequestParam("name") String name, @MyRequestParam("age") Integer age) {

        return "hello " + name + " age is " + age;
    }

}
